Fix leak in last cleanup.
authorRobert Lipe <robertlipe@gpsbabel.org>
Tue, 31 Jul 2018 05:34:44 +0000 (00:34 -0500)
committerRobert Lipe <robertlipe@gpsbabel.org>
Tue, 31 Jul 2018 05:34:44 +0000 (00:34 -0500)
Mixing C pointers and sane pointers is killing me…

xcsv.cc

diff --git a/xcsv.cc b/xcsv.cc
index f617d72e1dbb1e4d4090760a2f6367b7155c58e8..b0f3d3024fba873f00a46439b98fc3b6bc27e196 100644 (file)
--- a/xcsv.cc
+++ b/xcsv.cc
@@ -300,6 +300,7 @@ xcsv_parse_style_line(QString line)
     char* sp = csv_stringtrim(CSTR(tokenstr), "\"", 1);
     QString cp = xcsv_get_char_from_constant_table(sp);
     xcsv_file.badchars += cp;
+    xfree(sp);
   } else
 
   if (op =="PROLOGUE") {